//
//  ResizeViewChange.h
//  DemoResizeView
//
//  Created by duc nguyen van on 8/17/11.
//  Copyright 2011 STU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

@protocol delegateResizeViewChange
//for move view
-(void)checkTouchesBegan:(UITapGestureRecognizer*)tap;
-(void)checkTouchesMoved:(UIPanGestureRecognizer*)pan andVex:(CGPoint)vex;
-(void)checkTouchesEnded:(UITapGestureRecognizer*)tap;
//for scale view
-(void)scaleViewWithVex:(int)index andVex:(CGPoint)vex;
@end

@interface ResizeViewChange : UIView <UIGestureRecognizerDelegate>{
	UIView *checkOne;
	UIView *checkTwo;
	UIView *checkThree;
	UIView *checkFour;
	UIView *checkFive;
	UIView *checkSix;
	UIView *checkSeven;
	UIView *checkEight;
	
	id<delegateResizeViewChange> delegate;
	
	//vexter move
	CGPoint BPoint;
	CGPoint EPoint;
	
	//Bool scale an moving
	BOOL isRisize;
	BOOL isMove;
	int tagView;
}

@property (assign) id<delegateResizeViewChange> delegate;

@end
